<template>
  <div class="container">
    <div>
      {{ list }}
      {{cc}}
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      list:[],
      cc:2
    }
  },
  async asyncData({ $axios, params, error }) {
    console.log(32,2)
    try {
      const res = await $axios.get("http://localhost:3009/api/article/list?zd=&page=1&size=10")
      let list = res.data.data.list
      return { list }
    } catch (e) {
      error({ statusCode: 404, message: 'Not fount'})
    }

  },
  name: 'IndexPage'
}
</script>

<style>

</style>
